const userManger = () =>
    import(/* webpackChunkName: "userManger" */ '@views/home/userManger/userManger')
const orderManger = () =>
    import(/* webpackChunkName: "orderManger" */ '@views/home/orderManger/orderManger')
const rechargeList = () =>
    import(/* webpackChunkName: "rechargeList" */ '@views/home/rechargeList/rechargeList')
const goodsList = () =>
    import(/* webpackChunkName: "goodsList" */ '@views/home/goodsList/goodsList')
const editGoods = () =>
    import(/* webpackChunkName: "editGoods" */ '@views/home/goodsList/editGoods')

const homeChild = [{
  path: '/userManger',
  component: userManger,
  name: 'userManger',
  icon: 'el-icon-menu',
  meta: {
    title: 'API用户管理'
  }
}, {
  path: '/orderManger',
  component: orderManger,
  name: 'orderManger',
  icon: 'el-icon-tickets',
  meta: {
    title: 'API订单管理'
  }
}, {
  path: '/rechargeList',
  component: rechargeList,
  name: 'rechargeList',
  icon: 'el-icon-date',
  meta: {
    title: '用户充值记录'
  }
}, {
  path: '/goodsList',
  component: goodsList,
  name: 'goodsList',
  icon: 'el-icon-goods',
  meta: {
    title: '商品列表'
  }
}, {
  path: '/goodsList/editGoods',
  component: editGoods,
  name: 'editGoods',
  hidden: true,
  meta: {
    title: '编辑商品'
  }
}]

export default homeChild
